def now(*args, **kw):
   print('2015-3-25')
   print(args, kw)

def log(func):
    def wrapper(*args, **kw):
        print('call >> %s()' % func.__name__)
        return func(*args, **kw)
    return wrapper

b = log(now)
b(*(1,2,3), **{'a':11,'b':22})

